#define _CRT_SECURE_NO_WARNINGS 1

#include"real_sort.h"

TestQuickSort()
{
	int a[] = { 4,5,1,3,8,6,9,15,20,-3,-5 };
	int sz = sizeof(a) / sizeof(a[0]);
	int left = 0;
	int right = sz - 1;
	QuickSort(a, left, right);
	printf("QuickSort: ");
	PrintSort(a, sz);
}

void TestDigSort() 
{
	int a[] = { 4,5,1,3,8,6,9,15,20,-3,-5 };
	int sz = sizeof(a) / sizeof(a[0]);
	int left = 0;
	int right = sz - 1;
	DigSort(a, left, right);
	printf("DigSort: ");
	PrintSort(a, sz);
}

void TestABSort()
{
	int a[] = { 4,5,1,3,8,6,9,15,20,-3,-5 };
	int sz = sizeof(a) / sizeof(a[0]);
	int left = 0;
	int right = sz - 1;
	ABSort(a, left, right);
	printf("ABSort: ");
	PrintSort(a, sz);

}

int main()
{
	TestQuickSort();
	TestDigSort();
	TestABSort();
	return 0;
}